package cn.b.sky.flowable.service;

import cn.b.sky.flowable.model.WaitTask;
import cn.b.sky.flowable.model.condition.WaitTaskCondition;
import cn.b.sky.common.model.Page;

/**
 * 
 * <strong>Title : WaitTaskService.java<br></strong>
 * <strong>Package : cn.b.sky.flowable.service<br></strong>
 * <strong>Description : </strong>待办事项service<br> 
 * <strong>Create on : 2016-2-1 上午11:36:35<br></strong>
 * <p>
 * @author lidapeng<br>
 * @version <strong>v1.0.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人 | 修改日期 | 修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public interface WaitTaskService {

  /**
   * 
   * <strong>Title : saveWaitTask<br></strong>
   * <strong>Description : </strong>保存待办事项<br> 
   * <strong>Create on : 2016-2-23 上午10:55:38<br></strong>
   * <p>
   * @param waitTask
   * void
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  void saveWaitTask(WaitTask waitTask);

  /**
   * 
   * <strong>Title : selectWaitTaskByCondition<br></strong>
   * <strong>Description : </strong>分页查询待办<br> 
   * <strong>Create on : 2016-2-23 上午10:55:51<br></strong>
   * <p>
   * @param condition
   * @return
   * Page
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  Page selectWaitTaskByCondition(WaitTaskCondition condition);

  /**
   * 
   * <strong>Title : getStartWaitTaskByProcessInstance<br></strong>
   * <strong>Description : </strong>获取发起流程的待办事项<br> 
   * <strong>Create on : 2016-2-23 上午10:56:02<br></strong>
   * <p>
   * @param tenantId
   * @param processInstanceId
   * @return
   * WaitTask
   * @throws 
   * @author lidapeng<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人 | 修改日期 | 修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  WaitTask getStartWaitTaskByProcessInstance(String tenantId, String processInstanceId);

}
